Function isotope::utils::n_ones [−][src]
pub fn n_ones<N>(n: u32) -> N where
N: Zero + One + CheckedShl + WrappingSub, Expand description
Get an integer composed of min(BITS, n) ones followed by BITS - min(BITS, n) zeros, where N is an integer type with BITS bits.